<template>
  <div >
    <span>共{{ dataLen.value }}条</span>
    <button
      @click="removeAll"
    >全部删除</button>
  </div>
</template>

<script>
export default {
  name: 'TodoFooter',
  props: ['item'],
  // 来自../index.vue
  inject:['dataLen'],
  methods: {
    removeAll() {
      this.$emit('removeAll');
    }
  }
}
</script>

<style>

</style>
